home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
database
/
cbin
/
randmus.prg
< prev
next >
Wrap
Text File
|
1987-06-20
|
456b
|
24 lines
* randmus.prg
* emulate early 70's sci-fi movie image of computers!
load \cbin\rand2
load \cbin\beep
set talk off
pitch = 0
dur = 0
seed = val(substr(time(),7,2)) && second hand
call rand2 with seed
maxdur = 10
@ 3,0 say "DO NOT FOLD, SPINDLE, OR MUTILATE"
do while .t.
call rand2 with pitch
call rand2 with dur
p = str(mod(pitch,11000),5) + " " + str(mod(dur,maxdur),3)
@ 5,0 say p
call beep with p
enddo